/**
 * Lenovo Group
 * Copyright (c) 1999-2016 All Rights Reserved.
 */
package com.lenovo.lmrp.api.model.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 
 * @author wujin
 * @version v1.0
 */
@Entity
@Table(name = "itsm_ticket")
public class TicketPO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @Column(updatable = false)
    private String id;
    
    @Column(updatable = false)
    private String caption;
    
    @Column(updatable = false)
    private String projectId;

    @Column
    private String customerId;
    
    @Column(updatable = false)
    private int priority;
    
    @Column(updatable = false)
    private int severity;
    
    @Column
    private int policy;
    
    @Column(updatable = false)
    private Date createTime;
    
    @Column
    private Date updateTime;
    
    @Column
    private Date startTime;
    
    @Column
    private String description;
    
    @Column(updatable = false)
    private String creater;
    
    @Column
    private String assignee;
    
    @Column
    private int status;
    
    @Column
    private double longitude;
    
    @Column
    private double latitude;
    
    @Transient
    private TicketExtensePO others;

    @Transient
    private List<TicketSLAPO> ticketSla;
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCaption() {
        return caption;
    }

    public void setCaption(String caption) {
        this.caption = caption;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customer) {
        this.customerId = customer;
    }
    
    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }
    
    public int getSeverity() {
        return severity;
    }

    public void setSeverity(int severity) {
        this.severity = severity;
    }
    
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getAssignee() {
        return assignee;
    }

    public void setAssignee(String assignee) {
        this.assignee = assignee;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public TicketExtensePO getOthers() {
        return others;
    }

    public void setOthers(TicketExtensePO others) {
        this.others = others;
    }

    public int getPolicy() {
        return policy;
    }

    public void setPolicy(int policy) {
        this.policy = policy;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public List<TicketSLAPO> getTicketSla() {
        return ticketSla;
    }

    public void setTicketSla(List<TicketSLAPO> ticketSla) {
        this.ticketSla = ticketSla;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

}
